package edu.sctu.yueding.activitys;

import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import edu.sctu.yueding.R;
import edu.sctu.yueding.config.CacheConfig;
import edu.sctu.yueding.utils.httputils.SharePreference;

/**
 * Created by Administrator on 2016/9/13.
 */
public class AboutUsActivity extends BaseActivity {

    private TextView back,versionNumber;
    private Activity activity = this;
    private String localVersion;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_about_us);
        initSystemBar(this,0);
        initView();

    }

    private void initView() {

        back = (TextView) findViewById(R.id.about_us_back_txt);
        versionNumber = (TextView) findViewById(R.id.version_number);
        try {
            localVersion  = getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName;
            versionNumber.setText("当前版本:" + localVersion);
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();
        }

        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }


}
